﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupDepartmentCompany.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.Popup.PopupDepartmentCompany" %>
<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls" TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Disposal Case Detail</title>
    <base target="_self" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" /> 
    <script type="text/jscript">
        function setDepartmentCompany(DepartmentCompany,ContactNo)
			{
			    window.dialogArguments.form1.txtDepartmentCompany.value=DepartmentCompany;
                window.dialogArguments.form1.txtContactNo.value=ContactNo;
                window.close();
			}			
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="1" align="center" cellspacing="1" width="98%"  style="border-width:1px;border-color:#AAAAAA; border-style:solid;background-color: #eeeeee;">
			<tr>
				<td style ="width:25%"><asp:Literal ID="lblStaffType" Runat="server" ></asp:Literal></td>
				<td>
				<!--<input type="radio" name="type" value="1" runat="server" id="rdDepartment" checked/><asp:Literal ID="lblDepartment" Runat="server" ></asp:Literal>
                    <input type="radio" name="type" value="2" runat="server" id="rdCompany" /><asp:Literal ID="lblCompany" Runat="server" ></asp:Literal>
                    <input type="radio" name="type" value="3" runat="server" id="rdAdhoc" /><asp:Literal ID="lblAdhoc" Runat="server" ></asp:Literal>
				-->
                    <asp:RadioButtonList ID="rblStaffType" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
				<td><asp:Literal ID="lblDepartmentCompany" Runat="server" ></asp:Literal></td>
				<td><asp:textbox id="txtDepartmentCompany" runat="server" EnableViewState="False"  MaxLength="50"></asp:textbox></td>
			</tr>
			<tr>
				<td>
				    <input type="button" id="btnSearch"  runat="server" value="Search" />
				    <input type="button" id="btnColse"  runat="server" onclick="self.close()" />
				</td>
				<td></td>
			</tr>
		</table>
        <br />      
         <apj:commongridview id="grdPopSearchStaff" HorizontalAlign="Center" Width="98%" allowpaging="True" runat="server" autogeneratecolumns="False" OnRowDataBound="grdPopSearchStaff_OnRowDataBound" 
            bordercolor="black" cssclass="GridView" AllowSorting="True" AscPic="~/Images/Common/arrow_up_green.png" DescPic="~/Images/Common/arrow_down_green.png" PageLinkCount="7" >
            <Columns>
                 <asp:BoundField DataField="DepartmentCompany" HeaderText="SOM_DepartmentCompany" SortExpression="DepartmentCompany" >
                     <itemstyle width="400px" />
                 </asp:BoundField>
                 <asp:BoundField DataField="Tel" HeaderText="COM_ContactNo" SortExpression="Tel" >
                 </asp:BoundField>
            </Columns>
            <RowStyle CssClass="GridView_Row"></RowStyle>
            <HeaderStyle CssClass="GridView_Header"></HeaderStyle>
            <AlternatingRowStyle CssClass="GridView_AlternativeRow"></AlternatingRowStyle>
             <EmptyDataRowStyle CssClass="GridView_Header" />
             <PagerTemplate>
                 <asp:Table ID="CommonPagerTemplate" runat="server" Width="100%">
                     <asp:TableRow ID="COMGRIDV_TR" runat="server">
                         <asp:TableCell ID="COMGRIDV_Pager_Cell_TotalRecords" runat="server" CssClass="GridView_Pager_Cell_TotalRecords">
                             <asp:Label ID="Lbl_T_TotalRecords" runat="server">Total Records:</asp:Label>
                             <asp:Label ID="Lbl_V_TotalRecords" runat="server"></asp:Label>
                             &nbsp; &nbsp;
                             <asp:Label ID="Lbl_V_CurPage" runat="server"></asp:Label>
                             &nbsp;<asp:Label runat="server">/</asp:Label>
                             &nbsp;<asp:Label ID="Lbl_V_TotalPages" runat="server"></asp:Label>
                         </asp:TableCell>
                         <asp:TableCell ID="COMGRIDV_Pager_Cell_PageSize" runat="server" CssClass="GridView_Pager_Cell_PageSize">
                             <asp:Label ID="Lbl_T_PageSize" runat="server">PageSize:</asp:Label>
                             &nbsp;&nbsp;<asp:DropDownList ID="DDL_PageSize" runat="server" AutoPostBack="True">
                                 <asp:ListItem Value="5">5</asp:ListItem>
                                 <asp:ListItem Value="10">10</asp:ListItem>
                                 <asp:ListItem Value="15">15</asp:ListItem>
                                 <asp:ListItem Value="20">20</asp:ListItem>
                                 <asp:ListItem Value="25">25</asp:ListItem>
                                 <asp:ListItem Value="30">30</asp:ListItem>
                             </asp:DropDownList>
                         </asp:TableCell>
                         <asp:TableCell ID="COMGRIDV_Pager_Cell_Prev" runat="server" CssClass="GridView_Pager_Cell_Prev">
                             <asp:LinkButton ID="LBtn_Previous" runat="server" CommandArgument="Prev" CommandName="Page"><</asp:LinkButton>
                         </asp:TableCell>
                         <asp:TableCell ID="COMGRIDV_Pager_Cell_PagerLink" runat="server" CssClass="GridView_Pager_Cell_PagerLink">
                             <asp:Panel ID="Pnl_PageLink" runat="server" CssClass="GridView_Pager_PageLinkPanel">
                             </asp:Panel>
                         </asp:TableCell>
                         <asp:TableCell ID="COMGRIDV_Pager_Cell_Next" runat="server" CssClass="GridView_Pager_Cell_Next">
                             <asp:LinkButton ID="LBtn_Next" runat="server" CommandArgument="Next" CommandName="Page">></asp:LinkButton>
                         </asp:TableCell>
                     </asp:TableRow>
                 </asp:Table>
             </PagerTemplate>
             <EmptyDataTemplate>
                 <asp:Table runat="server" CssClass="GridView_Header_EmptyData">
                     <asp:TableRow runat="server">
                         <asp:TableCell runat="server" Style="border-right: black 1px solid;" Width="420px"></asp:TableCell>
                         <asp:TableCell runat="server"></asp:TableCell>
                     </asp:TableRow>
                 </asp:Table>
             </EmptyDataTemplate>
        </apj:commongridview>
        <br />    
    </div>
    </form>
</body>
</html>
